package com.martini.common.enumeration;

import lombok.Getter;

/**
 * @author martini at 2021/10/10 22:58
 */
@Getter
public enum StatusCodeEnum {

    /**
     * 响应成功
     */
    OK(0, "ok"),

    /**
     * 响应失败
     */
    FAIL(1, "fail");

    /**
     * 响应状态码
     */
    private int code;
    /**
     * 想应状态信息
     */
    private String msg;

    StatusCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
